home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 2 / Geek_Gadgets_2_2352.bin / lists / ade-gcc.archive.9602.gz / ade-gcc.archive.9602 / 000108_owner-ade-gcc_Thu Feb 22 04:16:12 1996.msg < prev    next >
Internet Message Format  |  1996-02-28  |  2KB

  1. Return-Path: <owner-ade-gcc>
  2. Received: by fishpond (Smail3.1.29.1 #57)
  3.     id m0tpX6b-000gXla; Thu, 22 Feb 96 04:14 EST
  4. Sender: owner-ade-gcc
  5. Received: from faui40.informatik.uni-erlangen.de by fishpond with smtp
  6.     (Smail3.1.29.1 #57) id m0tpX6T-000gXfC; Thu, 22 Feb 96 04:14 EST
  7. Received: from pctc.chemie.uni-erlangen.de (pctc.chemie.uni-erlangen.de [131.188.120.2]) by immd4.informatik.uni-erlangen.de with SMTP
  8.     id KAA00472 (8.7.2/7.5a-FAU);; Thu, 22 Feb 1996 10:08:34 +0100 (MET)
  9. Received: by pctc.chemie.uni-erlangen.de (AIX 3.2/UCB 5.64/4.03)
  10.           id AA31303; Thu, 22 Feb 1996 10:08:22 +0100
  11. Date: Thu, 22 Feb 1996 10:08:22 +0100
  12. Message-Id: <9602220908.AA31303@pctc.chemie.uni-erlangen.de>
  13. From: Thomas Walter <walter@pctc.chemie.uni-erlangen.de>
  14. To: lhecking@nmrc.ucc.ie
  15. Cc: ade-gcc@ninemoons.com
  16. Subject: problem with sh (pdksh)
  17. Sender: owner-ade-gcc@ninemoons.com
  18. Precedence: bulk
  19.  
  20.  
  21. Hello, I found some strange behaviour with sh. Following I give an example. I tried it
  22. with two versions of sh. The first is from FF10 and the second is the one I got
  23. from Lars Hecking.
  24.  
  25. Fail means you get a message like:   Missing }.
  26.  
  27. I tried it also here with bash running on a RS6000 with AIX3.2. You always get
  28. valid output and no error message.
  29.  
  30. ------    cut here. start of file gaga.sh ----------------------------
  31. #!/bin/sh 
  32. # This wil not work with pdksh v4.9 93/09/29 found on FF10
  33. # But it works a little bit better with another version of the same pdksh 
  34. # but modified from Lars Hecking
  35. #
  36.  
  37. echo "fo[] = {";
  38.  
  39. # how to call
  40. # sh -c "gaga.sh"
  41. # sh gaga.sh
  42. # both will fail
  43. # but with  sh  from Lars Hecking
  44. # sh gaga.sh
  45. # works
  46. # sh -c "gaga.sh"
  47. # fails
  48.  
  49. ---------- cut here.  end of file  gaga.sh ----------------------
  50.  
  51. Bye
  52.  
  53. -- 
  54. Thomas Walter
  55. INTERNET:  walter@pctc.chemie.uni-erlangen.de
  56.